<?php

class Setting_model extends CI_Model
{
	function __construct()
	{
		parent:: __construct();
	}
	
	function get_setting($key)
	{
		$this->db->select('option_value');
		$this->db->where('option_key', $key);
		$sql = $this->db->get('options');
		$sql = $sql->row();
		return $sql->option_value;
	}
}
